package com.four.shop.service;

import com.four.shop.entity.Observer;
import com.four.shop.vo.ObserverVo;

import java.util.List;
/**
 * @Author:wsy
 * @Date: 2021/12/9/15:35
 */
public interface ObserverService {

    /**
     * fetch data by rule id
     *
     * 商品评论列表
     *
     * 商品评论列表模糊
     *
     * @param vo
     * @return
     */
    List<Observer> list(ObserverVo vo);

    /**
     * fetch data by rule id
     *
     * id逻辑删除
     *
     * @param id
     * @return
     */
    void deleteById(Long id);

    /**
     * fetch data by rule id
     *
     * 添加虚拟评论
     *
     * @param observer
     * @return
     */
    void add(Observer observer);


    /**
     * fetch data by rule id
     *
     * 回显
     *
     * @param id
     * @return
     */
    Observer findById(Long id);




    /**
     * fetch data by rule id
     *
     * 添加回复
     *
     * @param criContent
     * @param id
     * @return
     */
    void addCriContentById(Long id, String criContent);
}
